﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Browser;

namespace Jzy.Workflow.Code
{
    public sealed class JSUtil
    {
        private JSUtil() { }

        public static object ShowNode(int? flowID, int? nodeID)
        {
            object result = HtmlPage.Window.Invoke("showNode", flowID, nodeID);
            return result;
        }

        public static object ShowLine(int? flowID, int? lineID)
        {
            object result = HtmlPage.Window.Invoke("showLine", flowID, lineID);
            return result;
        }

        internal static object ShowFlow(int flowID)
        {
            object result = HtmlPage.Window.Invoke("showFlow", flowID);
            return result;
        }
    }
}
